// Package public 基础库
package public

//import (
//	"github.com/gomodule/redigo/redis"
//)

//type RedisClient struct {
//	redisConn *redis.Conn
//}

////构造一个链接函数，如果没有密码，passwd为空字符串
//func (rs *RedisClient) redisConn(ip, port, passwd string) (redis.Conn, error) {
//	c, err := redis.Dial("tcp",
//		ip+":"+port,
//		redis.DialConnectTimeout(5*time.Second),
//		redis.DialReadTimeout(1*time.Second),
//		redis.DialWriteTimeout(1*time.Second),
//		redis.DialPassword(passwd),
//		redis.DialKeepAlive(1*time.Second),
//	)
//	return c, err
//}

//func (rs *RedisClient) Subscribe(channel string) {
//	redisConn("127.0.0,1")
//}
